﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScytheEngine
{
	public abstract class UIScreenElement : GridElement
	{
		#region Events

		/// <summary>
		/// Event raised when the screen element is selected.
		/// </summary>
		public event EventHandler<EventArgs> Selected;


		/// <summary>
		/// Method for raising the Selected event.
		/// </summary>
		protected internal virtual void OnSelectEntry()
		{
			if ( Selected != null )
				Selected( this, EventArgs.Empty );
		}

		#endregion
	}
}
